package ${package.Mapper};

import ${package.Entity}.${entity};
import ${superMapperClassPackage};
<#if mapperAnnotationClass??>
import ${mapperAnnotationClass.name};
</#if>
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.settlement.system.model.query.${entity}Query;

/**
* <p>
* ${table.comment!} Mapper 接口
* </p>
*
* @author ${author}
* @since ${date}
*/
<#if mapperAnnotationClass??>
@${mapperAnnotationClass.simpleName}
</#if>
<#if kotlin>
    interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
@Mapper
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {

    /**
    * 插入数据
    *
    * @param ${'${entity}'?uncap_first} 实体
    * @return
    */
    int insertData(${entity} ${'${entity}'?uncap_first});

    /**
    * 更新数据
    *
    * @param ${'${entity}'?uncap_first} 实体
    * @return
    */
    int update(${entity} ${'${entity}'?uncap_first});

    /**
    * 查询数据
    *
    * @param ${'${entity}'?uncap_first} 实体
    * @return
    */
    List<${entity}> getList(${entity} ${'${entity}'?uncap_first});

    /**
    * 分页查询
    *
    * @param queryParams 实体
    * @return
    */
    Page<${entity}> getPage(Page<${entity}> page, ${entity}Query queryParams);
}
</#if>
